#include "process.h"

char style[S_NUM] = {'#','-','>','+','.'};
void ProcessOn() //函数定义
{
    int cnt = 0;

    char bar[NUM];
    memset(bar,'\0',sizeof(bar));
    
    const char* lable = "|\\-/";

    while(cnt <= 100)
    {
        printf("[%-100s][%d%%][%c]\r",bar,cnt,lable[cnt%4]);
        fflush(stdout);
        //bar[cnt++] = TYPE;
        bar[cnt++] = style[N];
        usleep(50000);
    }

    printf("\n");
}
